/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package fr.cggveritas.crewintranet.jms.entities;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author Alassane
 */
@Entity
@Table(name = "cv_configurationmigration")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "CvConfigurationmigration.findAll", query = "SELECT c FROM CvConfigurationmigration c"),
    @NamedQuery(name = "CvConfigurationmigration.findById", query = "SELECT c FROM CvConfigurationmigration c WHERE c.id = :id"),
    @NamedQuery(name = "CvConfigurationmigration.findByNom", query = "SELECT c FROM CvConfigurationmigration c WHERE c.nom = :nom"),
    @NamedQuery(name = "CvConfigurationmigration.findByHost", query = "SELECT c FROM CvConfigurationmigration c WHERE c.host = :host"),
    @NamedQuery(name = "CvConfigurationmigration.findByPort", query = "SELECT c FROM CvConfigurationmigration c WHERE c.port = :port"),
    @NamedQuery(name = "CvConfigurationmigration.findByUser", query = "SELECT c FROM CvConfigurationmigration c WHERE c.user = :user"),
    @NamedQuery(name = "CvConfigurationmigration.findByPassword", query = "SELECT c FROM CvConfigurationmigration c WHERE c.password = :password")})
public class CvConfigurationmigration implements Serializable {
    @Column(name = "sourcededonnee")
    private String sourcededonnee;
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "id")
    private String id;
    @Column(name = "nom")
    private String nom;
    @Column(name = "host")
    private String host;
    @Column(name = "port")
    private Integer port;
    @Column(name = "user")
    private String user;
    @Column(name = "password")
    private String password;

    public CvConfigurationmigration() {
    }

    public CvConfigurationmigration(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getNom() {
        return nom;
    }

    public void setNom(String nom) {
        this.nom = nom;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof CvConfigurationmigration)) {
            return false;
        }
        CvConfigurationmigration other = (CvConfigurationmigration) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "fr.cggveritas.crewintranet.jms.entities.CvConfigurationmigration[ id=" + id + " ]";
    }

    public String getSourcededonnee() {
        return sourcededonnee;
    }

    public void setSourcededonnee(String sourcededonnee) {
        this.sourcededonnee = sourcededonnee;
    }
    
}
